-- GENERATED SPELL FOR [Elder Diemetradon] --


function spell0_9164(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9164', 5269, 1)
end

function Sorts_9164(pUnit, Event)
local choix_sorts_9164 = math.random(0, 0)
if choix_sorts_9164 == 0 then
pUnit:RegisterEvent('spell0_9164', 1, 1)
end
end

function mob9164_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9164', math.random(1500, 3000), 1)
end

function mob9164_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9164_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9164_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9164, 1, 'mob9164_Action')
RegisterUnitEvent(9164, 2, 'mob9164_Leave')
RegisterUnitEvent(9164, 3, 'mob9164_Kill')
RegisterUnitEvent(9164, 4, 'mob9164_Die')
